-- GENERATED SPELL FOR [Time-Lost Proto Drake] --


function spell0_32491(pUnit, Event) --@Time Lapse,n/a--
pUnit:FullCastSpellOnTarget(51020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32491', 2284, 1)
end

function spell1_32491(pUnit, Event) --@Time Shift,Self--
pUnit:FullCastSpellOnTarget(61084,pUnit)
pUnit:RegisterEvent('Sorts_32491', 310, 1)
end

function Sorts_32491(pUnit, Event)
local choix_sorts_32491 = math.random(0, 1)
if choix_sorts_32491 == 0 then
pUnit:RegisterEvent('spell0_32491', 1, 1)
end
if choix_sorts_32491 == 1 then
pUnit:RegisterEvent('spell1_32491', 1, 1)
end
end

function mob32491_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32491', math.random(1500, 3000), 1)
end

function mob32491_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32491_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32491_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32491, 1, 'mob32491_Action')
RegisterUnitEvent(32491, 2, 'mob32491_Leave')
RegisterUnitEvent(32491, 3, 'mob32491_Kill')
RegisterUnitEvent(32491, 4, 'mob32491_Die')
